<?php
/**
*	作者：信呼开发团队(雨中磐石)
*	官网：http://www.rockoa.com
*	软件：REIM即时通讯
*	添加日志
*/
class logClassModel extends Model
{
	
	public function add($stype, $remark,$cans=array())
	{
		$unar['stype'] = $stype;
		$unar['remark'] = $remark;
		$unar['optname'] = $this->adminname;
		$unar['uid'] = $this->adminid;
		$unar['adddt'] = $this->rock->now;
		foreach($cans as $k=>$v)$unar[$k]=$v;
		return $this->insert($unar);
	}
	
	public function adderror($stype, $remark,$cans=array())
	{
		$cans['level'] = 2;
		return $this->add($stype, $remark, $cans);
	}
}